package club.cearnach.api.service;

import club.cearnach.entity.Comment;
import club.cearnach.api.form.PageBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author 阮胜
 * @date 2018/3/26 23:45
 */
public interface ICommentService {
    Page<Comment> findAll(Pageable pageable);

    Comment save(Comment comment);

    void delete(Integer id);

    Page<Comment> findAllOrderByCreateDate(PageBean pageBean);


    Page<Comment> findByMovieId(Integer blogId, PageBean pageBean);

    void deleteIn(Integer[] idArr);

    long count();

    void addUnreadComment(Integer commentId);

    Long obtainUnreadCommentCount();

    List<Comment> obtainUnreadComments(int startIndex, int endIndex);

    boolean clearUnreadComments();
}
